import request from '@/utils/request'

// 查询问题反馈信息列表
export function listProblem(query) {
  return request({
    url: '/service-ry/feedback/problem/list',
    method: 'get',
    params: query
  })
}

// 查询问题反馈信息详细
export function getProblem(id) {
  return request({
    url: '/service-ry/feedback/problem/' + id,
    method: 'get'
  })
}

// 新增问题反馈信息
export function addProblem(data) {
  return request({
    url: '/service-ry/feedback/problem',
    method: 'post',
    data: data
  })
}

// 修改问题反馈信息
export function updateProblem(data) {
  return request({
    url: '/service-ry/feedback/problem',
    method: 'put',
    data: data
  })
}

// 删除问题反馈信息
export function delProblem(id) {
  return request({
    url: '/service-ry/feedback/problem/' + id,
    method: 'delete'
  })
}

// 导出问题反馈信息
export function exportProblem(query) {
  return request({
    url: '/service-ry/feedback/problem/export',
    method: 'get',
    params: query
  })
}

//获取最新数据
export function getlistlistProblemNewData() {
  return request({
     url: '/service-ry/feedback/problem/latestList',
    method: 'get',
    // headers:{
    //  isToken:false 
    // }
   
  })
}